import 'package:flutter/material.dart';

class Drawerdemo extends StatelessWidget{
  @override
  Widget build(BuildContext context){ 
     return Drawer(
      child: ListView(
      padding:EdgeInsets.zero,
     children:<Widget>[
UserAccountsDrawerHeader(
   accountName: Text('Jerry',style: TextStyle(fontWeight: FontWeight.bold)), 
   accountEmail: Text('1032100734@qq.com'),
   currentAccountPicture:CircleAvatar(
  backgroundImage: NetworkImage('http://3.0.169.87/pxmart_upload/image/15535640628607891.png'),
   ),
   decoration: BoxDecoration(
color: Colors.yellow,
image: DecorationImage(
  image: NetworkImage('http://3.0.169.87/pxmart_upload/image/15535640628607891.png'),
  fit: BoxFit.cover,
  colorFilter: ColorFilter.mode(Colors.yellow.withOpacity(0.6), BlendMode.hardLight))
   ),
),
ListTile(
   title: Text('Setting',textAlign: TextAlign.right),
   trailing: Icon(Icons.settings,color: Colors.red,size: 22),
   onTap: ()=>Navigator.pop(context)
),
ListTile(
   title: Text('Message',textAlign: TextAlign.right),
   trailing: Icon(Icons.message,color: Colors.red,size: 22),
    onTap: ()=>Navigator.pop(context)
),
ListTile(
   title: Text('favorite',textAlign: TextAlign.right),
   trailing: Icon(Icons.favorite,color: Colors.red,size: 22),
    onTap: ()=>Navigator.pop(context)
),
   ],
      ),
    );
   }

}